//
//  ActivityModel.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/4/12.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "ActivityModel.h"

@implementation ActivityModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.activityPictureUrl = dict[@"activityPictureUrl"];
        self.activityType = [dict[@"activityType"] integerValue];
        self.ID = [dict[@"id"] integerValue];
        self.content = dict[@"content"];
        self.title = dict[@"title"];
        self.startDate = dict[@"startDate"];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[ActivityModel alloc]initWithDict:dict];
}

@end
